//
//  ValuePickerCellData.h
//  18Birdies
//
//  Created by Eric Cheng on 2018/7/5.
//  Copyright © 2018年 Lc. All rights reserved.
//

#import "LcCellData.h"
#import "UIButton+Lc.h"

@interface ValuePickerCellData : LcCellData <UIPickerViewDataSource, UIPickerViewDelegate>

+ (ValuePickerCellData*)cellDataWithValues:(NSArray<NSString*>*)values
                           onPickedHandler:(ValueChangeHandler)onPickedHandler;

@property(nonatomic, copy) NSArray<NSString*>* values;
@property(nonatomic, copy) NSString* value;
@property(nonatomic, strong) ValueChangeHandler onPickedHandler;

- (int)indexOfCurrentValue;

@end
